package com.jspgou.cms.manager;

import java.io.IOException;

import com.jspgou.cms.entity.Store;
import com.jspgou.cms.entity.StoreExt;
import com.jspgou.cms.entity.StoreTxt;
import com.jspgou.common.page.Pagination;
import com.jspgou.core.entity.Website;

public interface StoreMng {
	public Pagination getPage(int pageNo, int pageSize);
	
	public Pagination getPage(Long ctgId,int pageNo, int pageSize);
	
	public Pagination getPage(Long ctgId,Boolean examine,int pageNo, int pageSize);
	
	public Pagination getPage(Long ctgId,Boolean examine,Boolean forbidden,int pageNo, int pageSize);

	public Store findById(Long id);
	
	public Store findByStorePath(String storePath);
	
	//通过域名查找店铺
	public Store findByDomainName(String domainName);

	public Store save(Store bean);
	
	public Store register(Store bean,StoreExt ext,StoreTxt txt,Long memberId,
			String domainPreFix,Website web,Long categoryId,boolean examine)throws IOException;

	public Store update(Store bean);
	
	public Store update(Store bean,Long[] fullGiveIds);
	
	public Store updateAdm(Store bean,StoreExt ext,StoreTxt txt,Long categoryId,Long storeModelId);
	
	public Store updateFro(Store bean,StoreExt ext,StoreTxt txt,Long categoryId,Long storeModelId);

	public Store deleteById(Long id);
	
	public Store[] deleteByIds(Long[] ids);
}